<script>
import { useAuthStore } from "@/store/modules/auth.js";
import {
  routerInterceptor,
  routerRemoveInterceptor,
} from "@/router/interceptors.js";

export default {
  onLaunch: function () {
    routerRemoveInterceptor();
    routerInterceptor();
  },
  onShow: function () {
    const authStore = useAuthStore();
    authStore.initToken();
  },
  onHide: function () {},
};
</script>

<style lang="scss">
page {
  background-color: #f2f2f2;
}

view,
scroll-view,
swiper,
match-media,
movable-area,
movable-view,
cover-view,
cover-image,
icon,
text,
rich-text,
progress,
button,
checkboxe,
ditor,
form,
input,
label,
picker,
picker-view,
radio,
slider,
switch,
textarea,
navigator,
audio,
camera,
image,
video,
live-player,
live-pusher,
map,
canvas,
web-view,
:before,
:after {
  box-sizing: border-box;
}

/* 隐藏scroll-view的滚动条 */
::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none;
  background: transparent;
}
</style>
